<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>制作</title>
</head>
<body>
<h2>七夕表白话语</h2>
输入你需要表达的话语:<input type="text" id="a" style="height: 3rem">
<button onclick="b()" style="height: 3rem">点击跳转</button>
<script>
    function b() {
        location.href="index.html?a="+encodeURIComponent(encodeURIComponent(document.getElementById("a").value));
    }

</script>
</body>
</html>